<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript" src="js/jquery-1.12.4.js">
</script>
	<script type="text/javascript">
	$(function(){
		$("table tr:even").css("background","#ffc107");
	})
</script>
	<div align="center">
		<form action="FinAllServlet" method="post">
			产品代码&nbsp;<input name="id">&nbsp;风险评估
			 <select name="risk">
				<option value="0">请选择</option>
				<option value="1">R1</option>
				<option value="2">R2</option>
				<option value="3">R3</option>
			</select> <input type="submit" value="查询">&nbsp;&nbsp;&nbsp;<a
				href="add.jsp">新增理财信息</a>
			<table border="1" align="center">
				<tr>
					<th>产品代码</th>
					<th>风险评估</th>
					<th>预期收益</th>
					<th>发售起始日</th>
					<th>发售截止日</th>
					<th>产品到期日</th>
				</tr>
				<c:forEach var="list" items="${requestScope.list}">
					<tr>
						<td align="center">${list.id}</td>
						<c:if test="${list.risk ==1}">
							<td align="center">R1</td>
						</c:if>
						<c:if test="${list.risk ==2}">
							<td align="center">R2</td>
						</c:if>
						<c:if test="${list.risk ==3}">
							<td align="center">R3</td>
						</c:if>
						<td align="center">${list.income}</td>
						<td align="center">${list.saleStating }</td>
						<td align="center">${list.saleEnd }</td>
						<td align="center">${list.end }</td>
					</tr>
				</c:forEach>
			</table>
		</form>
	</div>
</body>
</html>